/*
 * Welcome to use the TableGo Tools.
 * 
 * http://vipbooks.iteye.com
 * http://blog.csdn.net/vipbooks
 * http://www.cnblogs.com/vipbooks
 * 
 * Author:bianj
 * Email:edinsker@163.com
 * Version:5.8.8
 */

package cn.stylefeng.guns.czlm.entity;
import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

/**
 * tb_product
 * 
 * @author wangruquan
 * @version 1.0.0 2019-04-28
 */
@TableName("tb_product")
public class TbProduct implements java.io.Serializable {
    /** 版本号 */
    private static final long serialVersionUID = -8935531754938233593L;

    private  TbCategory tbCategory;

    public TbCategory getTbCategory() {
        return tbCategory;
    }

    public void setTbCategory(TbCategory tbCategory) {
        this.tbCategory = tbCategory;
    }

    /** id */
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Integer id;

    /** createDate */
    @TableField(value = "createDate", fill = FieldFill.INSERT)
    private Date createDate;

    /** modifyDate */
    @TableField(value = "modifyDate", fill = FieldFill.UPDATE)
    private Date modifyDate;

    /** name */
    @TableField("name")
    private String name;

    /** caption */
    @TableField("caption")
    private String caption;

    @Override
    public String toString() {
        return "TbProduct{" +
                "tbCategory=" + tbCategory +
                ", id=" + id +
                ", createDate=" + createDate +
                ", modifyDate=" + modifyDate +
                ", name='" + name + '\'' +
                ", caption='" + caption + '\'' +
                ", thumbnail='" + thumbnail + '\'' +
                ", introduction='" + introduction + '\'' +
                ", productCategoryId=" + productCategoryId +
                ", sn='" + sn + '\'' +
                ", sales=" + sales +
                ", isMarketable=" + isMarketable +
                ", price=" + price +
                ", marketPrice=" + marketPrice +
                ", stock=" + stock +
                ", parameterValue='" + parameterValue + '\'' +
                ", sortNum=" + sortNum +
                ", isRecommend=" + isRecommend +
                ", active=" + active +
                '}';
    }

    /** 缩略图 */
    @TableField("thumbnail")
    private String thumbnail;

    /** introduction */
    @TableField("introduction")
    private String introduction;

    /** productCategoryId */
    @TableField("productCategoryId")
    private Integer productCategoryId;

    /** 商品编号 */
    @TableField("sn")
    private String sn;

    /** 销量 */
    @TableField("sales")
    private Integer sales;

    /** 是否上架 */
    @TableField("isMarketable")
    private Integer isMarketable;

    /** 现价 */
    @TableField("price")
    private Float price;

    /** 原价、市场价 */
    @TableField("marketPrice")
    private Float marketPrice;

    /** 库存 */
    @TableField("stock")
    private Integer stock;

    /** json字符串，其他属性 */
    @TableField("parameterValue")
    private String parameterValue;

    /** sortNum */
    @TableField("sort_num")
    private Integer sortNum;

    /** 1推荐 */
    @TableField("isRecommend")
    private Integer isRecommend;

    /** 删除标记 */
    @TableField("active")
    private Integer active;

    /**
     * 获取id
     * 
     * @return id
     */
    public Integer getId() {
        return this.id;
    }

    /**
     * 设置id
     * 
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取createDate
     * 
     * @return createDate
     */
    public Date getCreateDate() {
        return this.createDate;
    }

    /**
     * 设置createDate
     * 
     * @param createDate
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    /**
     * 获取modifyDate
     * 
     * @return modifyDate
     */
    public Date getModifyDate() {
        return this.modifyDate;
    }

    /**
     * 设置modifyDate
     * 
     * @param modifyDate
     */
    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    /**
     * 获取name
     * 
     * @return name
     */
    public String getName() {
        return this.name;
    }

    /**
     * 设置name
     * 
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取caption
     * 
     * @return caption
     */
    public String getCaption() {
        return this.caption;
    }

    /**
     * 设置caption
     * 
     * @param caption
     */
    public void setCaption(String caption) {
        this.caption = caption;
    }

    /**
     * 获取缩略图
     * 
     * @return 缩略图
     */
    public String getThumbnail() {
        return this.thumbnail;
    }

    /**
     * 设置缩略图
     * 
     * @param thumbnail
     *          缩略图
     */
    public void setThumbnail(String thumbnail) {
        this.thumbnail = thumbnail;
    }

    /**
     * 获取introduction
     * 
     * @return introduction
     */
    public String getIntroduction() {
        return this.introduction;
    }

    /**
     * 设置introduction
     * 
     * @param introduction
     */
    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    /**
     * 获取productCategoryId
     * 
     * @return productCategoryId
     */
    public Integer getProductCategoryId() {
        return this.productCategoryId;
    }

    /**
     * 设置productCategoryId
     * 
     * @param productCategoryId
     */
    public void setProductCategoryId(Integer productCategoryId) {
        this.productCategoryId = productCategoryId;
    }

    /**
     * 获取商品编号
     * 
     * @return 商品编号
     */
    public String getSn() {
        return this.sn;
    }

    /**
     * 设置商品编号
     * 
     * @param sn
     *          商品编号
     */
    public void setSn(String sn) {
        this.sn = sn;
    }

    /**
     * 获取销量
     * 
     * @return 销量
     */
    public Integer getSales() {
        return this.sales;
    }

    /**
     * 设置销量
     * 
     * @param sales
     *          销量
     */
    public void setSales(Integer sales) {
        this.sales = sales;
    }

    /**
     * 获取是否上架
     * 
     * @return 是否上架
     */
    public Integer getIsMarketable() {
        return this.isMarketable;
    }

    /**
     * 设置是否上架
     * 
     * @param isMarketable
     *          是否上架
     */
    public void setIsMarketable(Integer isMarketable) {
        this.isMarketable = isMarketable;
    }

    /**
     * 获取现价
     * 
     * @return 现价
     */
    public Float getPrice() {
        return this.price;
    }

    /**
     * 设置现价
     * 
     * @param price
     *          现价
     */
    public void setPrice(Float price) {
        this.price = price;
    }

    /**
     * 获取原价、市场价
     * 
     * @return 原价、市场价
     */
    public Float getMarketPrice() {
        return this.marketPrice;
    }

    /**
     * 设置原价、市场价
     * 
     * @param marketPrice
     *          原价、市场价
     */
    public void setMarketPrice(Float marketPrice) {
        this.marketPrice = marketPrice;
    }

    /**
     * 获取库存
     * 
     * @return 库存
     */
    public Integer getStock() {
        return this.stock;
    }

    /**
     * 设置库存
     * 
     * @param stock
     *          库存
     */
    public void setStock(Integer stock) {
        this.stock = stock;
    }

    /**
     * 获取json字符串，其他属性
     * 
     * @return json字符串
     */
    public String getParameterValue() {
        return this.parameterValue;
    }

    /**
     * 设置json字符串，其他属性
     * 
     * @param parameterValue
     *          json字符串
     */
    public void setParameterValue(String parameterValue) {
        this.parameterValue = parameterValue;
    }

    /**
     * 获取sortNum
     * 
     * @return sortNum
     */
    public Integer getSortNum() {
        return this.sortNum;
    }

    /**
     * 设置sortNum
     * 
     * @param sortNum
     */
    public void setSortNum(Integer sortNum) {
        this.sortNum = sortNum;
    }

    /**
     * 获取1推荐
     * 
     * @return 1推荐
     */
    public Integer getIsRecommend() {
        return this.isRecommend;
    }

    /**
     * 设置1推荐
     * 
     * @param isRecommend
     *          1推荐
     */
    public void setIsRecommend(Integer isRecommend) {
        this.isRecommend = isRecommend;
    }

    /**
     * 获取删除标记
     * 
     * @return 删除标记
     */
    public Integer getActive() {
        return this.active;
    }

    /**
     * 设置删除标记
     * 
     * @param active
     *          删除标记
     */
    public void setActive(Integer active) {
        this.active = active;
    }
}